/**
 * @author yinyunqi
 * @datetime 2018年3月27日
 * @Content 
 */
package com.zcl.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcl.dao.User;
import com.zcl.mapper.UserMapper;

@Service
public class UserService {
	@Autowired
	UserMapper userMapper;
	
	public User userQueryById(String userId) {
		return userMapper.userQueryById(userId);
	}

	/**
	 * @param userName
	 * @return
	 */
	public User userQueryByName(String userName) {
		return userMapper.userQueryByName(userName);
	}
	
	public void changeUser(Map<String, String> map) {
		userMapper.changeUser(map);
	}
	
	public void changePwd(Map<String, String> map) {
		userMapper.changePwd(map);
	}
	public void changeIconUrl(Map<String, String> map){
		userMapper.changeIconUrl(map);
	}
}
